package cn.jason.ymcc.feign;

import cn.jason.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-media", fallbackFactory = cn.jason.ymcc.feign.MediaFileFeignClientFallBackFactory.class)
public interface MediaFileFeignClient {

    @RequestMapping(value="/mediaFile/searchMediaFiles/{chapterId}",method= RequestMethod.GET)
    JSONResult searchMediaFiles(@PathVariable("chapterId") Long chapterId);
}
